
#include<vector>
#include<iostream>
using namespace std;
#include"RBTree.h"
void test1()
{
   int a[] = { 16, 3, 7, 11, 9, 26, 18, 14, 15 };
    //int a[] = { 4, 2, 6, 1, 3, 5, 15, 7, 16, 14 };
	//const int n = 1000000;
	//vector<int> a;
	//a.reserve(n);
	//srand(time(0));
	//for (size_t i = 0; i < n; ++i)
	//{
	//	//a.push_back(rand());
	//	i.push_back();
	//}

	RBTree<int, int> t1;
	for (auto e : a)
	{
		t1.Insert(make_pair(e, e));
	}
	int x = t1.IsBalance();
	//cout <<x<< endl;
	t1.InOrder();
}
int main()
{
	test1();
	return 0;
}